<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite + Vue + TS</title>
    <script>
      function loadBaiduMap() {
        window.BMapGL = null
        window.BMap_loadScriptTime = new Date().getTime()
        window.BMap_loadScriptTime = new Date().getTime()
        window.BMap = null
        window.onBMapCallback = function () {
          console.log('百度地图脚本加载完成')
        }
        let script = document.createElement('script')
        script.type = 'text/javascript'
        script.src =
          'https://api.map.baidu.com/api?v=3.0&ak=ADE7YARRJo1AZOpbOgbqpOlqNThSracy&callback=onBMapCallback'
        document.head.appendChild(script)
      }
      loadBaiduMap()
    </script>
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>
